import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Addcate from '@/components/Addcate'
import Addgoods from '@/components/Addgoods'
import Details from '@/components/Details'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/addctate',
      name: 'Addcate',
      component: Addcate
    },
    {
      path: '/addgoods',
      name: 'Addgoods',
      component: Addgoods
    },
    {
      path: '/details',
      name: 'Details',
      component: Details
    },
  ]
})
